//引入所有图标
import * as Icons from "@ant-design/icons";
import React from "react";

const Iconfont = ({ icon }) => {
  //这里传入的props是一个对象，里面有icon属性，值是antd图标的名字

  return React.createElement(Icons[icon]);
  // return 1;
};

export default Iconfont;
